package com.sxkiler.demo.rpc.pojo;

import java.io.Serializable;

public class Request implements Serializable {
    private String className;//需调用的类全限定名

    private String methodName;//需调用的方法名

    private Class<?>[] parameterType;//参数类型

    private Object[] parameterValue;//参数值

    private String serviceNameByAnnotated;//bean名称，服务端根据此名称去容器中查找对象

    public Request() {
    }

    public Request(String className, String methodName, Class<?>[] parameterType, Object[] parameterValue) {
        this.className = className;
        this.methodName = methodName;
        this.parameterType = parameterType;
        this.parameterValue = parameterValue;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class<?>[] getParameterType() {
        return parameterType;
    }

    public void setParameterType(Class<?>[] parameterType) {
        this.parameterType = parameterType;
    }

    public Object[] getParameterValue() {
        return parameterValue;
    }

    public void setParameterValue(Object[] parameterValue) {
        this.parameterValue = parameterValue;
    }

    public String getServiceNameByAnnotated() {
        return serviceNameByAnnotated;
    }

    public void setServiceNameByAnnotated(String serviceNameByAnnotated) {
        this.serviceNameByAnnotated = serviceNameByAnnotated;
    }


}
